<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<%= "product_new.html" %>
<% form_for:product ,:url=>{:action=>"product_create"} do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Price</b><br />
    <%= f.text_field :price %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Img url</b><br />
    <%= f.text_field :img_url %>
  </p>

  <p>
    <b>Amount</b><br />
    <%= f.text_field :amount %>
  </p>

  <p>
    <%= f.submit "创建" %>
  </p>
<% end %>

<%= link_to 'Back', {:action=>"product_list"} %>